#include<bits/stdc++.h>
using namespace std;
int a[100002],b[100002],n,w;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
    {
        scanf("%d",&a[i]);
    }
    sort(a+1,a+n+1);
    for(int i=1;i<=n;i++)
    {
        if(a[i]>a[i-1])
        {
            w++;
        }
        b[w]++;
    }
    for(int i=2;i<=w;i++)
    {
        if(b[i-1]-b[i]>0)
        {
            b[i]+=b[i-1]-b[i];
        }
    }
    printf("%d",b[w]);
    return 0;
}